package com.nhim.cms.admin.shared;

import java.util.List;

import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;
import com.nhim.cms.admin.server.SpringServiceLocator;

@Service(locator = SpringServiceLocator.class, value = com.nhim.cms.admin.server.ElementTemplateService.class)
public interface ElementTemplateRequest extends RequestContext {

	Request<List<ElementTemplateProxy>> findByElementDefinitionId(Integer id);

	Request<Boolean> remove(Integer id);
	
	Request<Boolean> isNameExist(Integer elementDefinitionId,String name);
	
	 Request<ElementTemplateProxy>  persit(ElementTemplateProxy proxy);

}
